<?php

// include function files for this application
require_once('paperclip_sc_fns.php');
session_start();

do_html_header("Deleting paper clip");
display_shopping_menu($_SESSION['cat_array']);
display_cart_tool();
echo "<div id=\"right-area\">";
if (check_admin_user()) {
	if (isset($_POST['sku'])) {
		$sku = $_POST['sku'];
		if(delete_paperclip($sku)) {
			echo "<p>paper clip ".$sku." was deleted.</p>";
		} else {
			echo "<p>paper clip ".$sku." could not be deleted.</p>";
		}
	} else {
		echo "<p>We need an sku to delete a paper clip.	Please try again.</p>";
	}
} else {
	echo "<p>You are not authorized to view this page.</p>";
}
do_html_footer();

?>
